package test;

import frame.Autowired;
import frame.Component;
import frame.PostConstruct;

@Component
public class Dog {
    @Autowired
    private Cat cat;

    @Autowired
    private Dog dog;

    @PostConstruct
    public void init(){
        System.out.println("Dog is Constructed,Cat has a field "+cat);
        System.out.println("Dog is Constructed,Cat has a field "+dog);
    }
}
